<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style>
    input { font:12px Simsun; margin:0; padding:0; border:0; background:gold; }
</style>
</head>
<body>
<script>
    for (var i = 1; i < 13; i++) {
        document.write('<input type="text" size="' + i + '" /><br />');
    }
</script>
</body>
</html>